using Mt.Site.Core.SEO;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.SEO.Dto
{
    public class CreateOrUpdateSeoInput
    {
        /// <summary>
        /// 可以是栏目ID，也可以是某条数据的ID
        /// </summary>
        [Required]
        public Guid RelatedId { get; set; }

        public long MenuId { get; set; }

        [Required]
        [StringLength(Seo.MaxTitleLength)]
        public string Title { get; set; }

        [StringLength(Seo.MaxDescriptionLength)]
        public string Description { get; set; }

        [StringLength(Seo.MaxKeyWordsLength)]
        public string KeyWords { get; set; }

        [StringLength(Seo.MaxCustomDataLength)]
        public string CustomData { get; set; }
    }
}
